package model;

public class User {
    private String id;      // 账号（学生/教师的唯一标识）
    private String name;    // 姓名
    private String password;// 密码（默认可以设为初始值，如身份证后6位）

    public User(String id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    // Getter和Setter
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return id + "," + name + "," + password;
    }
}